﻿using System;

namespace EntitySetBase
{
    /// <summary>
    /// 所有需要携带创建相关数据信息的通用抽象接口
    /// </summary>
    public interface IEntitySetWithCreate<TKey> : IEntitySet<TKey> where TKey : IConvertible, IEquatable<TKey>
    {
        /// <summary>
        /// 创建人
        /// </summary>
        string CreatedBy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        DateTime CreatedOn { get; set; }
        /// <summary>
        /// 行版本号
        /// </summary>
        string RowVersion { get; set; }

        /// <summary>
        /// 创建方法
        /// </summary>
        void Create(string createdBy = null);
    }
}
